export default function openSetting(err, message) {
    if (err.errMsg?.includes('auth deny') || err.errMsg?.includes('auth denied')) {
        wx.showModal({
            title: '提示',
            content: message || '请打开相关权限',
            showCancel: false,
            success: (res) => {
                wx.openSetting({
                    success: (res) => {
                        // if (res.authSetting['scope.writePhotosAlbum']) {
                        // }
                    }
                });
            }
        });
        return true
    }

    return false
}
